﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Tuto.Objects
{
    /// <summary>
    ///     Representes a TutoLivre on the system.
    /// </summary>
    public class TutoLivre
    {
        private int _id;
        private string _titre;
        private string _discipline;
        private string _notes;

        public int id
        {
            get
            {
                return this._id;
            }
            set
            {
                this._id = value;
            }
        }

        public string titre
        {
            get
            {
                return this._titre;
            }
            set
            {
                this._titre = value;
            }
        }

        public string discipline
        {
            get
            {
                return this._discipline;
            }
            set
            {
                this._discipline = value;
            }
        }

        public string notes
        {
            get
            {
                return this._notes;
            }
            set
            {
                this._notes = value;
            }
        }

        /// <summary>
        ///     Create a default object
        /// </summary>
        public TutoLivre()
        {
            this.id = 0;
            this.titre = String.Empty;
            this.discipline = String.Empty;
            this.notes = String.Empty;
        }

        /// <summary>
        ///     Construct a new TutoLivre object
        /// </summary>
        /// <param name="id"></param>
        /// <param name="titre"></param>
        /// <param name="discipline"></param>
        /// <param name="notes"></param>
        public TutoLivre(int id, string titre, string discipline, string notes)
        {
            this.id = id;
            this.titre = titre;
            this.discipline = discipline;
            this.notes = notes;
        }
    }
}
